<?php
class AppAction extends Action {
	//通过用户名获取站点ID
    public function index(){
		if($_POST['username']){
            $map['username']=$_POST['username'];
            $siteid=D('Member')->where($map)->getField('site_id',true);
            die(json_encode(array('site_id'=>$siteid[0],'status'=>1)));
        }
    }
    public function test(){
    	import("@.ORG.Task.Task");
		$this->initView();
		$task=new Task();
		echo($task->test($this->view));
    }
}